package com.codeyang.domain;

import com.codeyang.vo.MenuTreeVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * 存储在redis中 登录对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActiveUser implements Serializable {
    private User user;
    private List<String> roles = Collections.EMPTY_LIST;//角色
    private List<String> permissions = Collections.EMPTY_LIST; //权限
    private List<MenuTreeVo> menuTreeVos = Collections.EMPTY_LIST; //菜单
}
